﻿using MIMSDomain.Abstract;
using MIMSDomain.Concrete;
using MIMSDomain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MIMSModel.Concrete
{
    public class EFSurgicalHistoryRepository: IRepository<SurgicalHistory>, IDisposable
    {
        EFDbContext dbContext;

        public EFSurgicalHistoryRepository()
        {
            dbContext = new EFDbContext();
        }
        public IQueryable<SurgicalHistory> All
        {
            get { return dbContext.SurgicalHistories; }
        }

        public bool Save(SurgicalHistory _T)
        {
            throw new NotImplementedException();
        }

        public SurgicalHistory GetById(int Id)
        {
            throw new NotImplementedException();
        }

        public IQueryable<SurgicalHistory> Search(System.Linq.Expressions.Expression<Func<SurgicalHistory, bool>> predicate)
        {
            throw new NotImplementedException();
        }

        public bool Delete(SurgicalHistory _T)
        {
            throw new NotImplementedException();
        }

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                dbContext.Dispose();
            }
        }
    }
}
